package maze

//  迷宫问题(本次仅针对但迷宫操作，即只有一个入口和出口)

type Maze struct {
	MazeRoute [][]int
	Pos       Position
}

type Position struct {
	X int
	Y int
}

func (maze *Maze) IsPossiblePass() bool {
	return maze.MazeRoute[maze.Pos.X][maze.Pos.Y] == 0
}

func (maze *Maze) PassedMark() {
	maze.MazeRoute[maze.Pos.X][maze.Pos.Y] = 2
}
